package com.usian.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.usian.mapper.ProductMapper;
import com.usian.pojo.Product;
import com.usian.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductServiceimpl extends ServiceImpl<ProductMapper, Product> implements ProductService {
    @Autowired
    private ProductMapper productMapper;
    @Override
    public List<Product> findAll(Product product) {

        return productMapper.findAll(product);
    }

    @Override
    public Product findByid(Integer id) {
        return productMapper.findByid(id);
    }
}
